from django.urls import path, re_path
from Healths.views import HealthCategoryListApiView, HealthDiseaseListApiView, LifeCategoryListApiView, LifeDiseaseListApiView, \
                      HealthCategoryRetrieveAPIView, LifeCategoryRetrieveAPIView, HealthInfoListAPIView, LifeInfoListAPIView,  \
                      HealthInfoRetrieveAPIView, LifeInfoRetrieveAPIView


urlpatterns = [
  path('healthCategory/', HealthCategoryListApiView.as_view()),
  re_path(r'^healthDisease/(?P<healthCategoryID>\d+)/$', HealthDiseaseListApiView.as_view()),
  path('lifeCategory/', LifeCategoryListApiView.as_view()),
  re_path(r'^lifeDisease/(?P<lifeCategoryID>\d+)/$', LifeDiseaseListApiView.as_view()),
  path('healthCategory/<int:pk>/', HealthCategoryRetrieveAPIView.as_view()),
  path('lifeCategory/<int:pk>/', LifeCategoryRetrieveAPIView.as_view()),
  re_path(r'^healthInfo/(?P<healthDiseaseID>\d+)/$', HealthInfoListAPIView.as_view()),
  re_path(r'^lifeInfo/(?P<lifeDiseaseID>\d+)/$', LifeInfoListAPIView.as_view()),
  path('gethealthInfo/<int:pk>/', HealthInfoRetrieveAPIView.as_view()),
  path('getlifeInfo/<int:pk>/', LifeInfoRetrieveAPIView.as_view()),
]
